package com.dhcc.bpm.alarm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiafayu
 * @since 2022-02-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ALARM_FTP_INFO_CONFIG")
@ApiModel(value="AlarmFtpInfoConfig对象", description="FTP参数表")
public class AlarmFtpInfoConfig implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(
            value = "ID",
            type = IdType.ASSIGN_ID
    )
    @JsonSerialize(
            using = ToStringSerializer.class,
            nullsUsing = NullSerializer.class
    )
    private Long id;

    @ApiModelProperty(value = "产品代码")
    @TableField("PRDT_CODE")
    private String prdtCode;

    @ApiModelProperty(value = "渠道编号")
    @TableField("CHANNEL_NO")
    private String channelNo;

    @ApiModelProperty(value = "ftp服务器IP")
    @TableField("FTP_IP")
    private String ftpIp;

    @ApiModelProperty(value = "ftp服务器端口")
    @TableField("FTP_PORT")
    private String ftpPort;

    @ApiModelProperty(value = "用户名称")
    @TableField("FTP_USER")
    private String ftpUser;

    @ApiModelProperty(value = "密码")
    @TableField("FTP_PSWD")
    private String ftpPswd;

    @ApiModelProperty(value = "远端路径")
    @TableField("FTP_PATH")
    private String ftpPath;

    @ApiModelProperty(value = "ftp类型")
    @TableField("FTP_TYPE")
    private String ftpType;

    @ApiModelProperty(value = "ftp脚本模式")
    @TableField("FTP_MODE")
    private String ftpMode;

    @ApiModelProperty(value = "01：要传到ftp目录下的子目录其他：默认路径")
    @TableField("FTP_SUB_PATH")
    private String ftpSubPath;

    @ApiModelProperty(value = "01")
    @TableField("FTP_METHOD")
    private String ftpMethod;

    @ApiModelProperty(value = "下载超时时间")
    @TableField("FTP_TIMEOUT")
    private Long ftpTimeout;

    @ApiModelProperty(value = "ftp类型05此字段必输，sftp用到的私钥，公钥配置到对方服务器")
    @TableField("FTP_PRIKEY")
    private String ftpPrikey;

    @ApiModelProperty(value = "是否开启代理 1是 0否")
    @TableField("PROXY_STATUS")
    private String proxyStatus;
    @ApiModelProperty(value = "代理的IP地址")
    @TableField("PROXY_IP")
    private String proxyIp;
    @ApiModelProperty(value = "代理的端口号")
    @TableField("PROXY_PORT")
    private Integer proxyPort;

    @ApiModelProperty(value = "文件保存的本地位置")
    @TableField("SAVE_PATH")
    private String savePath;

    @ApiModelProperty(value = "是否启用0停用1启用")
    @TableField("IENABLE")
    private String ienable;

    @ApiModelProperty(value = "备注1")
    @TableField("FILE1")
    private String file1;

    @ApiModelProperty(value = "备用2")
    @TableField("FILE2")
    private String file2;

    @ApiModelProperty(value = "备注3")
    @TableField("FILE3")
    private String file3;


}
